//
//  FoodCell.m
//  YIChuSeller
//
//  Created by admin on 2018/12/1.
//  Copyright © 2018 xiangshengjun. All rights reserved.
//

#import "GXContentMenuCell.h"
@interface GXContentMenuCell ()
@property (weak, nonatomic) IBOutlet UIImageView *logoImageView;
@property (weak, nonatomic) IBOutlet UILabel *menuNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;

@end
@implementation GXContentMenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setDishes:(NSString *)dishes
{
    _dishes = dishes;
    NSArray *disherArray = [dishes componentsSeparatedByString:@"-"];
    if (disherArray.count) {
        NSString *url = [NSString stringWithFormat:@"%@/%@",kBaseURLIMAGE,disherArray.firstObject];
        [self.logoImageView sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:[UIImage imageNamed:@"placeHolder_userLogo"]];
        self.menuNameLabel.text = [NSString stringWithFormat:@"%@ x%@",disherArray[1],disherArray[2]];
        self.numberLabel.text = [NSString stringWithFormat:@"¥%@",disherArray.lastObject];
    }
}
@end
